PRINT '-------------------------------------------'
PRINT 'Starting execution of PBDsk_GigyaUserMapper.SQL'
PRINT '-------------------------------------------'
GO

SET QUOTED_IDENTIFIER OFF
SET ANSI_NULLS ON         -- We don't want (NULL = NULL) == TRUE
GO
SET ANSI_PADDING ON
GO
SET ANSI_NULL_DFLT_ON ON
GO




IF (NOT EXISTS (SELECT name
                FROM sysobjects
                WHERE (name = N'PBDsk_GigyaUserMapper')
                  AND (type = 'U')))
BEGIN
	  CREATE TABLE [PBDsk_GigyaUserMapper](
			[GigyaUID] [varchar](256) NOT NULL FOREIGN KEY REFERENCES PBDsk_GigyaUser(GigyaUID),
			[CMSEmail] [varchar](512) NOT NULL,
			[IsActive] [bit] NULL
		 CONSTRAINT [PK_PBDsk_GigyaUserMapper] PRIMARY KEY CLUSTERED 
		(
			[GigyaUID] ASC,
			[CMSEmail] ASC
		)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
		) ON [PRIMARY]
END
GO



PRINT '--------------------------------------------'
PRINT 'Completed execution of PBDsk_GigyaUserMapper.SQL'
PRINT '--------------------------------------------'

